package bus

import (
	"context"
	"git.900sui.cn/kc/rpcinterface/client"
	"git.900sui.cn/kc/rpcinterface/interface/gov"
)

// ping++
type CustodyPingppClient struct {
	client.Baseclient
}

//Init 初始化
func (c *CustodyPingppClient) Init() *CustodyPingppClient {
	c.ServiceName = "rpc_bus"
	c.ServicePath = "CustodyPingpp"
	return c
}

//ping++发送短信验证码
func (c *CustodyPingppClient)SendSmsCode (ctx context.Context,args gov.ArgsSendSmsCodeApi ,reply *bool) (err error) {
	return c.Call(ctx, "SendSmsCode", args, reply)
}

//新增结算账户
func (c *CustodyPingppClient)SettleAcct(ctx context.Context,args gov.ArgsSettleAcctApi,reply *bool)(err error) {
	return c.Call(ctx, "SettleAcct", args, reply)
}

//获取已绑定成功账户信息
func (c *CustodyPingppClient)GetBusAcctInfo(ctx context.Context,args gov.ArgsQuerySettleAcctInfoApi , reply *gov.ReplyQuerySettleAcctInfoApi) (err error) {
	return c.Call(ctx, "GetBusAcctInfo", args, reply)
}

//商户删除结算账户
func (c *CustodyPingppClient)DeleteSettleAcct(ctx context.Context,args gov.ArgsDeleteSettleAcctApi , reply *bool) (err error) {
	return c.Call(ctx, "DeleteSettleAcct", args, reply)
}

//打款验证
func (c *CustodyPingppClient)PaymentValidate(ctx context.Context,args gov.ArgsPaymentValidateApi , reply *bool) (err error) {
	return c.Call(ctx, "PaymentValidate", args, reply)
}

//支付充值创建
func (c *CustodyPingppClient)CreateDeposits(ctx context.Context,args gov.ArgsCreateDepositsApi , reply *gov.DepositsInfo) (err error) {
	return c.Call(ctx, "CreateDeposits", args, reply)
}

//支付充值订单查询
func (c *CustodyPingppClient)QueryDeposits(ctx context.Context,outOrderNo string , reply *gov.DepositsInfo) (err error) {
	return c.Call(ctx, "QueryDeposits", outOrderNo, reply)
}

//处理验证中的存管账户
func (c *CustodyPingppClient)HandleSettleAcct(ctx context.Context,args string , reply *bool) (err error) {
	return c.Call(ctx, "HandleSettleAcct", args, reply)
}

//处理提现中的记录结果查询
func (c *CustodyPingppClient)HandleWithdrawal(ctx context.Context,args string , reply *bool) (err error) {
	return c.Call(ctx, "HandleWithdrawal", args, reply)
}
